<template>
  <router-view />
</template>

<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'

onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    handleThemeStyle(useSettingsStore().theme)
  })
})
</script>
<style>
.avatar{
  background-color: rgb(32, 116, 222);
  width: 32px;
  height: 32px;
  line-height: 28px;
  color: rgb(255, 255, 255);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.idx{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  border-radius: 50%;
}
</style>
